﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerMove : MonoBehaviour
{
    private Transform m_Transform;
    private Transform start;
    public Transform end;
    public float speed;
    // Start is called before the first frame update
    void Start()
    {
       
        start = transform;
    }

    // Update is called once per frame
    void Update()
    {
        transform.position= Vector3.MoveTowards(start.position, end.position, speed * Time.deltaTime);
    }
}
